class item
{
public:
    item(int x = 0) { val = x; }
    int val;
};

class fac
{
public:
    item *getitem()
    {
        item *tmp = new item(114514);
        return tmp;
    }
};

int main()
{
    fac F;
    item *tmp = F.getitem();
}